<template>
  <div>
    <h1>App</h1>
    count:{{ count }} <button @click="count++">+</button> <br>
    num:{{ num }} <button @click="num++">+</button>
  </div>
</template>

<script setup>
import { ref, watch } from "vue";
const count = ref(1);
const num = ref(1);

watch([count, num], ([c1, n1], [c2, n2]) => {
  console.log(c1, n1, c2, n2);
});






</script>